package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.action.PreviewEquityOrder;

@XmlRootElement(name = "PreviewChangeEquityOrder")
public class PreviewChangeEquityOrderConverter {
	private PreviewEquityOrder enity;
	
	public PreviewChangeEquityOrderConverter(PreviewEquityOrder previewEquityOrder) {
		enity = previewEquityOrder;
	}
	
	public PreviewChangeEquityOrderConverter() {
		enity = new PreviewEquityOrder();
	}
    
	@XmlElement(name = "EquityOrderRequeest")
	public EquityOrderRequestConverter getEquityOrderRequestConverter() {
		
		EquityOrderRequestConverter eorc = new EquityOrderRequestConverter( enity.getEquityOrderRequest());
		return eorc;
	}
}
